<%@ page pageEncoding="utf-8" %>
<%@ page import="com.glodon.paas.document.web.util.SecurityUtils" %>
<header class="glodon_header clearfix">
    <div class="glodon_headerBg">
        <div class="mask" id="mask"><img src="${path}/images/loading.gif"></div>
        <div id="notify-wrapper" hidden><span id="notify" class=""><span id="notify-msg"></span></span></div>
        <div class="clearfix">
            <nav class="clearfix">
                <div id="glodon_logo" class="clearfix">
                    <a href="<%=request.getContextPath()%>"><img
                            src="<%=request.getContextPath()%>/images/logo.png">
                    </a>
                </div>
                <div id="navBar" class="clearfix">
                    <%if (SecurityUtils.getCurrentUser() != null) { %>
                    <ul class="nav pull-right">
                        <li id="fat-menu" class="dropdown">
                            <a href="#" class="dropdown-toggle" data-toggle="dropdown" style="color:#0088CC">
                                <img src="<%=request.getContextPath()%>/images/icon_spacer.gif"
                                     class="sprite sprite_header"/>
                                <%= SecurityUtils.getCurrentUser().getDisplayName()%>
                                <b class="caret"></b>
                            </a>
                            <ul class="dropdown-menu">
                                <li><a href="#"><img src="<%=request.getContextPath()%>/images/icon_spacer.gif"
                                                     class="sprite sprite_setting"/>个人设置</a>
                                </li>
                                <li><a href="#"><img src="<%=request.getContextPath()%>/images/icon_spacer.gif"
                                                     class="sprite sprite_space"/>授权信息</a>
                                </li>
                                <li class="divider"></li>
                                <li>
                                    <a href="${path}/logout"><img
                                            src="<%=request.getContextPath()%>/images/icon_spacer.gif"
                                            class="sprite sprite_signout"/>退出</a>
                                </li>
                            </ul>
                        </li>
                    </ul>
                    <%} %>
                </div>
            </nav>
            <aside id="glodon_header_aside clearfix"></aside>
        </div>
    </div>
</header>
